module.exports = {
    host: 'https://driverapi.dwilms.com/',//正式
    //host: 'https://driverapitest.dwilms.com/',//测试
    tokenL: wx.getStorageSync("TOKEN"),
    drivers: {},
    company: {},
    captchaUrl: "",
    request: function(url, data, method, success, fail) {
        data = JSON.stringify(data)
        wx.request({
            url: this.host + url,
            method: method,
            data: data,
            header: {
                'content-type': 'application/json',
                "Authorization": "Bearer " + this.tokenL,
                "LoginType": 4
            },
            success: success,
            fail: fail
        })
    },
}